//
//  FCImageView.m
//  Fontcase
//
//  Created by Pieter Omvlee on 8/7/08.
//  Copyright 2008 Insearchofaname. All rights reserved.
//

#import "CHImageView.h"


@implementation CHImageView

@synthesize stringValue;

- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
{
  NSPasteboard *pasteboard = [sender draggingPasteboard];
  
  if ([[pasteboard types] containsObject:NSFilenamesPboardType]) {
    NSArray *files = [pasteboard propertyListForType:NSFilenamesPboardType];
    [self setStringValue:[files firstObject]];
  } else
    [self setStringValue:nil];
  
  return [super performDragOperation:sender];
}

@end
